using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using Bussiness.Config;     
using Bussiness.Entity;
namespace Bussiness.ManagerBase
{
                

     public abstract class Vw_aspnet_RolesManagerBase
    {
        public Vw_aspnet_RolesManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>Vw_aspnet_RolesEntity</returns>
        public Vw_aspnet_RolesEntity Insert(Vw_aspnet_RolesEntity obj)
        { 
            return (Vw_aspnet_RolesEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>Vw_aspnet_RolesEntity</returns>
        public Vw_aspnet_RolesEntity Update(Vw_aspnet_RolesEntity obj)
        { 
            return (Vw_aspnet_RolesEntity)Adapter.Update(obj);             
        }
 
 
        public Vw_aspnet_RolesEntity Delete(Vw_aspnet_RolesEntity obj)
        { 
            return (Vw_aspnet_RolesEntity)Adapter.Delete(obj);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ApplicationId duoc set trong object
        /// </summary>
        /// <returns>Vw_aspnet_RolesEntity</returns>
        public Vw_aspnet_RolesEntity DeleteByApplicationId (Vw_aspnet_RolesEntity obj)
        { 
            return (Vw_aspnet_RolesEntity)Adapter.DeleteByField(obj,"ApplicationId");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ApplicationId 
        /// </summary>
        /// <returns>Vw_aspnet_RolesEntity</returns>
        public Vw_aspnet_RolesEntity DeleteByApplicationId (Guid ApplicationId )
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.ApplicationId = ApplicationId;  
            return (Vw_aspnet_RolesEntity)Adapter.DeleteByField(obj,"ApplicationId");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Description duoc set trong object
        /// </summary>
        /// <returns>Vw_aspnet_RolesEntity</returns>
        public Vw_aspnet_RolesEntity DeleteByDescription (Vw_aspnet_RolesEntity obj)
        { 
            return (Vw_aspnet_RolesEntity)Adapter.DeleteByField(obj,"Description");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Description 
        /// </summary>
        /// <returns>Vw_aspnet_RolesEntity</returns>
        public Vw_aspnet_RolesEntity DeleteByDescription (string Description )
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.Description = Description;  
            return (Vw_aspnet_RolesEntity)Adapter.DeleteByField(obj,"Description");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LoweredRoleName duoc set trong object
        /// </summary>
        /// <returns>Vw_aspnet_RolesEntity</returns>
        public Vw_aspnet_RolesEntity DeleteByLoweredRoleName (Vw_aspnet_RolesEntity obj)
        { 
            return (Vw_aspnet_RolesEntity)Adapter.DeleteByField(obj,"LoweredRoleName");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LoweredRoleName 
        /// </summary>
        /// <returns>Vw_aspnet_RolesEntity</returns>
        public Vw_aspnet_RolesEntity DeleteByLoweredRoleName (string LoweredRoleName )
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.LoweredRoleName = LoweredRoleName;  
            return (Vw_aspnet_RolesEntity)Adapter.DeleteByField(obj,"LoweredRoleName");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien RoleId duoc set trong object
        /// </summary>
        /// <returns>Vw_aspnet_RolesEntity</returns>
        public Vw_aspnet_RolesEntity DeleteByRoleId (Vw_aspnet_RolesEntity obj)
        { 
            return (Vw_aspnet_RolesEntity)Adapter.DeleteByField(obj,"RoleId");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien RoleId 
        /// </summary>
        /// <returns>Vw_aspnet_RolesEntity</returns>
        public Vw_aspnet_RolesEntity DeleteByRoleId (Guid RoleId )
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.RoleId = RoleId;  
            return (Vw_aspnet_RolesEntity)Adapter.DeleteByField(obj,"RoleId");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien RoleName duoc set trong object
        /// </summary>
        /// <returns>Vw_aspnet_RolesEntity</returns>
        public Vw_aspnet_RolesEntity DeleteByRoleName (Vw_aspnet_RolesEntity obj)
        { 
            return (Vw_aspnet_RolesEntity)Adapter.DeleteByField(obj,"RoleName");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien RoleName 
        /// </summary>
        /// <returns>Vw_aspnet_RolesEntity</returns>
        public Vw_aspnet_RolesEntity DeleteByRoleName (string RoleName )
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.RoleName = RoleName;  
            return (Vw_aspnet_RolesEntity)Adapter.DeleteByField(obj,"RoleName");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public Vw_aspnet_RolesEntity Select(Vw_aspnet_RolesEntity obj)
        { 
            return (Vw_aspnet_RolesEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(Vw_aspnet_RolesEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(Vw_aspnet_RolesEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new Vw_aspnet_RolesEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new Vw_aspnet_RolesEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<Vw_aspnet_RolesEntity> SelectAllLST()
        { 
            return  (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new Vw_aspnet_RolesEntity()),new Vw_aspnet_RolesEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<Vw_aspnet_RolesEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new Vw_aspnet_RolesEntity(),option),new Vw_aspnet_RolesEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByApplicationId (Vw_aspnet_RolesEntity obj)
        { 
            return Adapter.SelectByField(obj,"ApplicationId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByApplicationId (Vw_aspnet_RolesEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"ApplicationId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_RolesEntity></returns>
        public List<Vw_aspnet_RolesEntity> SelectByApplicationIdLST (Vw_aspnet_RolesEntity obj)
        { 
            return  (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ApplicationId"),new Vw_aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_RolesEntity></returns>
        public List<Vw_aspnet_RolesEntity> SelectByApplicationIdLST (Vw_aspnet_RolesEntity obj,SelectOptions option)
        { 
            return  (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"ApplicationId",option),new Vw_aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByApplicationId (Guid ApplicationId )
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.ApplicationId = ApplicationId;  
            return Adapter.SelectByField(obj,"ApplicationId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByApplicationId (Guid ApplicationId, SelectOptions option)
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.ApplicationId = ApplicationId;  
            return Adapter.SelectByField(obj,"ApplicationId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_RolesEntity> SelectByApplicationIdLST (Guid ApplicationId )
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.ApplicationId = ApplicationId;  
            return  (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ApplicationId"),new Vw_aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_RolesEntity> SelectByApplicationIdLST (Guid ApplicationId, SelectOptions option)
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.ApplicationId = ApplicationId;  
            return  (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ApplicationId",option),new Vw_aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDescription (Vw_aspnet_RolesEntity obj)
        { 
            return Adapter.SelectByField(obj,"Description");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDescription (Vw_aspnet_RolesEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Description",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_RolesEntity></returns>
        public List<Vw_aspnet_RolesEntity> SelectByDescriptionLST (Vw_aspnet_RolesEntity obj)
        { 
            return  (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Description"),new Vw_aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_RolesEntity></returns>
        public List<Vw_aspnet_RolesEntity> SelectByDescriptionLST (Vw_aspnet_RolesEntity obj,SelectOptions option)
        { 
            return  (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Description",option),new Vw_aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDescription (string Description )
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.Description = Description;  
            return Adapter.SelectByField(obj,"Description");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDescription (string Description, SelectOptions option)
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.Description = Description;  
            return Adapter.SelectByField(obj,"Description",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_RolesEntity> SelectByDescriptionLST (string Description )
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.Description = Description;  
            return  (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Description"),new Vw_aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_RolesEntity> SelectByDescriptionLST (string Description, SelectOptions option)
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.Description = Description;  
            return  (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Description",option),new Vw_aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredRoleName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLoweredRoleName (Vw_aspnet_RolesEntity obj)
        { 
            return Adapter.SelectByField(obj,"LoweredRoleName");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredRoleName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLoweredRoleName (Vw_aspnet_RolesEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"LoweredRoleName",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredRoleName duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_RolesEntity></returns>
        public List<Vw_aspnet_RolesEntity> SelectByLoweredRoleNameLST (Vw_aspnet_RolesEntity obj)
        { 
            return  (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LoweredRoleName"),new Vw_aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredRoleName duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_RolesEntity></returns>
        public List<Vw_aspnet_RolesEntity> SelectByLoweredRoleNameLST (Vw_aspnet_RolesEntity obj,SelectOptions option)
        { 
            return  (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"LoweredRoleName",option),new Vw_aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredRoleName 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLoweredRoleName (string LoweredRoleName )
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.LoweredRoleName = LoweredRoleName;  
            return Adapter.SelectByField(obj,"LoweredRoleName");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredRoleName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLoweredRoleName (string LoweredRoleName, SelectOptions option)
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.LoweredRoleName = LoweredRoleName;  
            return Adapter.SelectByField(obj,"LoweredRoleName",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredRoleName 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_RolesEntity> SelectByLoweredRoleNameLST (string LoweredRoleName )
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.LoweredRoleName = LoweredRoleName;  
            return  (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LoweredRoleName"),new Vw_aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredRoleName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_RolesEntity> SelectByLoweredRoleNameLST (string LoweredRoleName, SelectOptions option)
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.LoweredRoleName = LoweredRoleName;  
            return  (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LoweredRoleName",option),new Vw_aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRoleId (Vw_aspnet_RolesEntity obj)
        { 
            return Adapter.SelectByField(obj,"RoleId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRoleId (Vw_aspnet_RolesEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"RoleId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleId duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_RolesEntity></returns>
        public List<Vw_aspnet_RolesEntity> SelectByRoleIdLST (Vw_aspnet_RolesEntity obj)
        { 
            return  (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RoleId"),new Vw_aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleId duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_RolesEntity></returns>
        public List<Vw_aspnet_RolesEntity> SelectByRoleIdLST (Vw_aspnet_RolesEntity obj,SelectOptions option)
        { 
            return  (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"RoleId",option),new Vw_aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleId 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRoleId (Guid RoleId )
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.RoleId = RoleId;  
            return Adapter.SelectByField(obj,"RoleId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRoleId (Guid RoleId, SelectOptions option)
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.RoleId = RoleId;  
            return Adapter.SelectByField(obj,"RoleId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleId 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_RolesEntity> SelectByRoleIdLST (Guid RoleId )
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.RoleId = RoleId;  
            return  (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RoleId"),new Vw_aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_RolesEntity> SelectByRoleIdLST (Guid RoleId, SelectOptions option)
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.RoleId = RoleId;  
            return  (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RoleId",option),new Vw_aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRoleName (Vw_aspnet_RolesEntity obj)
        { 
            return Adapter.SelectByField(obj,"RoleName");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRoleName (Vw_aspnet_RolesEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"RoleName",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleName duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_RolesEntity></returns>
        public List<Vw_aspnet_RolesEntity> SelectByRoleNameLST (Vw_aspnet_RolesEntity obj)
        { 
            return  (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RoleName"),new Vw_aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleName duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_RolesEntity></returns>
        public List<Vw_aspnet_RolesEntity> SelectByRoleNameLST (Vw_aspnet_RolesEntity obj,SelectOptions option)
        { 
            return  (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"RoleName",option),new Vw_aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleName 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRoleName (string RoleName )
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.RoleName = RoleName;  
            return Adapter.SelectByField(obj,"RoleName");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRoleName (string RoleName, SelectOptions option)
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.RoleName = RoleName;  
            return Adapter.SelectByField(obj,"RoleName",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleName 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_RolesEntity> SelectByRoleNameLST (string RoleName )
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.RoleName = RoleName;  
            return  (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RoleName"),new Vw_aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_RolesEntity> SelectByRoleNameLST (string RoleName, SelectOptions option)
        { 
            Vw_aspnet_RolesEntity obj = new Vw_aspnet_RolesEntity();
            obj.RoleName = RoleName;  
            return  (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RoleName",option),new Vw_aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_RolesEntity></returns>
        public List<Vw_aspnet_RolesEntity> SelectWithConditionLST (Vw_aspnet_RolesEntity obj)
        { 
            return  (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new Vw_aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_RolesEntity></returns>
        public List<Vw_aspnet_RolesEntity> SelectWithConditionLST (Vw_aspnet_RolesEntity obj,SelectOptions option)
        { 
            return  (List<Vw_aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new Vw_aspnet_RolesEntity());
        }

}
}
